package com.king.base;

import com.google.common.primitives.Ints;

/**
 * @author taomk
 * @version 1.0
 * @since 15-1-25 下午10:11
 */
public class IntsTest {

	public static void main(String [] args) {
		// Int类型比较（Guava这么用）
		int compare = Ints.compare(3, 4);

		int [] array = { 1, 2, 3, 4, 5 };
		int [] array2 = {2, 4, 5};
		int a = 4;
		boolean contains = Ints.contains(array, a);
		int indexOf = Ints.indexOf(array, a);
		int max = Ints.max(array);
		int min = Ints.min(array);
		int[] concat = Ints.concat(array, array2);


	}
}
